import os


class Env:
    @staticmethod
    def getRunPath():
        curScriptDir = os.path.dirname(os.path.abspath(__file__))
        runPath = os.path.join(curScriptDir, "..")
        return runPath
    @staticmethod
    def getDataPath():
        dbDirPath = os.path.join(Env.getRunPath(), "data")
        return dbDirPath
    @staticmethod
    def getDBPath():
        dbPath = os.path.join(Env.getDataPath(), "books.db")
        return dbPath
